package com.local.consumer.service.impl;

import com.local.consumer.mapper.OrderMapper;
import com.local.consumer.pojo.Order;
import com.local.consumer.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public Order getById(Integer orderId) {
        return orderMapper.getById(orderId);
    }

    @Override
    public Integer updateById(Integer orderId) {
        return orderMapper.updateById(orderId);
    }
}
